package com.xingkeduo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.AutoConfigurationPackage;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * @author 高杰
 * @time 2018年12月17日 上午11:47:05
 * @description
 */
@EnableEurekaClient
@SpringBootApplication
@EnableAutoConfiguration
@EnableTransactionManagement//开启事务管理
@MapperScan("com.xingkeduo.dao.workpad.mappers")
@EnableFeignClients
public class WorkPadApplication<EnableDiscoveryClient> {
    public static void main(String[] args) {
//		System.setProperty(ConstantUtil.DATABASE, DatabaseEnum.MYSQL_USER_MASTER.toConditionString());
        SpringApplication.run(WorkPadApplication.class, args);
    }
}
